<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><% 
%><%@page import="java.lang.reflect.Method"%><%@page import="java.util.ArrayList"%><%@page import="java.util.List"%><%@page import="com.zpyr.mvc.vo.*"%><%
%><%

	List<Class> lst = new ArrayList<Class>();
	lst.add( Carc_info.class );
	lst.add( AddrList.class );
	lst.add( Carc_evaluation.class );
	
	Method[] ms = null;
	String model_name = "" , tagName = "";
	
	for( Class cl : lst ) {
		model_name = cl.getSimpleName().toLowerCase();
		
		ms = cl.getDeclaredMethods();
%>
Ext.regModel('<%=model_name %>' , {
	fields: [
        <%		
		for( Method m : ms ) {
			tagName = m.getName().substring(3).toLowerCase();
			if(m.getName().startsWith("get") && m.getGenericParameterTypes().length == 0 ) {
%> '<%=tagName %>',<%				
			}
		}
%>
	]
});
<%
	}
%>

Ext.regModel('menuList' , {
	fields: [{name: 'text' , type: 'string'}]
});

Ext.regModel('favList' , {
	fields: [
		{name: 'info_seq' , type: 'string'},
		{name: 'name' , type: 'string'},
		{name: 'category1' , type: 'string'},
	]
});
